package com.poobo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.poobo.dao.IConfigListDao;
import com.poobo.entity.TbConfigList;
import com.poobo.service.IConfigListService;
import com.poobo.util.pager.Page;

@Service
@Transactional
public class ConfigListServiceImpl implements IConfigListService {
	@Autowired
	private IConfigListDao configListDao;

	@Override
	public TbConfigList queryConfigListById(Integer id) {
		return configListDao.queryConfigListById(id);
	}

	@Override
	public Page queryConfigListPage(TbConfigList configList, Page page) {
		return configListDao.queryConfigListPage(configList, page);
	}

	@Override
	public void deleteConfigListById(Integer id) {
		configListDao.deleteConfigListById(id);
	}

	@Override
	public void saveConfigList(TbConfigList configList) {
		configListDao.saveConfigList(configList);
	}

	@Override
	public List<TbConfigList> queryAll() {
		return configListDao.queryAll();
	}

	@Override
	public List<TbConfigList> queryByIsEnable() {
		return configListDao.queryByIsEnable();
	}

	@Override
	public TbConfigList queryConfigListByName(String name) {
		return configListDao.queryConfigListByName(name);
	}
}
